//
// Created by wze-zero on 2024/10/20.
//
#include <iostream>
#include <map>

using namespace std;

int main() {
    string s;
    map<char, int> m;
    int max = -1, min = 99;
    cin >> s;
    for (int i = 0; i < s.size(); ++i) {
        if (m.find(s.at(i)) == m.end()) {
            m.insert(make_pair(s.at(i), 1));
        } else {
            (*(m.find(s.at(i)))).second++;
        }
    }
    for (map<char,int>::iterator it=m.begin();it!=m.end();++it) {
        it->second > max ? max = it->second : max;
        it->second < min ? min = it->second : min;
    }
    if (max - min == 0 || max - min == 1) {
        cout << "No Answer" << endl << '0' << endl;
    } else {
        for (int i = 2; i < (max - min) / 2; ++i) {
            if ((max - min) / i == 0) {
                cout << "No Answer" << endl << '0' << endl;
                break;
            }
        }
        cout << "Lucky Word" << endl << max - min << endl;
    }
    return 0;
}